-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexHNSW support #47
base: main
Are you sure you want to change the base?
Conversation
describe('#constructor', () => { | ||
it('1 arg will result in index with default neighbors & metric', () => { | ||
const index = new IndexHNSW(2); | ||
expect(index.getDimension()).toBe(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we'd be able to check the value of neighbors & metrics, but indexes don't expose those props so I kept this way for consistency with faiss. This check is only useful to show it doesn't throw.
Not sure I understand the build failures as IndexHNSW doesn't seem defined in the bindings somehow. Works great locally. Seems like it might be related to this command:
It doesn't appear to actually be building, and instead using an older build artifact. Might be related to other build failures too. This is confirmed if you look at the unit test jobs which do pass because they're invoking a build. |
Yes, these two pipelines do use old build. The purpose is to confirm that the packages to be released can be installed and imported correctly in various environments. I would move these two builds to run on release(on push tags) rather than in every PR. (See :4b57bc4) |
This PR also includes new patterns for: